<template>
  <div class="home">
    <child @aa="fun1" />
    <!-- 把父组件的方法fun1传给子组件 -->

    <hr />
    <h1>{{ formson }}</h1>
  </div>
</template>

<script>
import child from "../components/Child";

export default {
  data() {
    return {
      formson: "",
    };
  },
  components: {
    child,
  },
  methods: {
    fun1(val) {
      // console.log(val);
      // this.formson = val;
    },
  },
};
</script>
